<!-- $Id: wxch_keywords.html 2013-10-16 09:59:06Z djks $ -->

{if $full_page}
{include file="wxch_pageheader.htm"}
{insert_scripts files="../data/static/js/utils.js,./js/listtable.js"}
<style type="text/css">
.action-span {
    float: right;
    height: 24px;
    line-height: 24px;
    padding: 0 8px;
    background: #1abc9c;
    border-radius: 5px;
    color: #fff;
    font-size: 13px;
    font-weight: normal;
    text-align: center;
    margin-top: 6px;
    margin-right: 20px;
}
.action-span a {color: #fff;}
</style>

<div style="clear:both"></div>


<span class="action-span"><a href="wxch_regmsg.php?act=add&type=image">编辑图文回复</a></span>

<span class="action-span"><a href="wxch_regmsg.php?act=add&type=text">编辑文本回复</a></span>
  <form name="theForm" method="post"  >

  <table width="100%" >

  <tr>

    <td class="label">选择关注回复模式</td>

    <td><input type="radio" name="id" value="4" {if $ret1 ==4}checked="checked" {/if} />图文模式

	</td>

	<td>	

	<input type="radio" name="id" value="3" {if $ret1 ==3}checked="checked" {/if} />文本模式 </td>

  </tr>





  <tr>

    <td colspan="2" align="center">

      <input type="submit" value="{$lang.button_submit}" class="button" />

      <input type="reset" value="{$lang.button_reset}" class="button" />

    </td>

  </tr>

</table>

  </form>

<!-- end cat list -->

<script type="text/javascript" language="JavaScript">

    listTable.recordCount = {$filter.record_count};

    listTable.pageCount = {$filter.page_count};

    var page_size   = {$filter.page_size};



    listTable.filter.type = '{$filter.type}';

    listTable.filter.pagesize = '{$filter.page_size}';

    listTable.filter.record_count = '{$filter.record_count}';

    listTable.filter.page = '{$filter.page}';

    listTable.filter.page_count = '{$filter.record_count}';

    listTable.filter.start = '{$filter.start}';

    



  onload = function()

  {

    // 开始检查订单

    startCheckOrder();

  }

	/**

   * @param: bool ext 其他条件：用于转移分类

   */

  function confirmSubmit(frm, ext)

  {

      if (frm.elements['type'].value == 'button_remove')

      {

          return confirm(drop_confirm);

      }

      else if (frm.elements['type'].value == 'not_on_sale')

      {

          return confirm(batch_no_on_sale);

      }

      else if (frm.elements['type'].value == 'move_to')

      {

          ext = (ext == undefined) ? true : ext;

          return ext && frm.elements['target_cat'].value != 0;

      }

      else if (frm.elements['type'].value == '')

      {

          return false;

      }

      else

      {

          return true;

      }

  }

	 function changeAction()

  {

		

      var frm = document.forms['listForm'];



      // 切换分类列表的显示

      frm.elements['target_cat'].style.display = frm.elements['type'].value == 'move_to' ? '' : 'none';



      if (!document.getElementById('btnSubmit').disabled &&

          confirmSubmit(frm, false))

      {

          frm.submit();

      }

  }



 /* 搜索规则 */

 function searchArticle()

 {

    listTable.filter.keyword = Utils.trim(document.forms['searchForm'].elements['keyword'].value);

    listTable.filter.page = 1;

    listTable.loadList();

 }



 

</script>

{include file="wxch_pagefooter.htm"}

{/if}